<div class="pageheader">
	<h2>
		<i class="fa fa-inbox"></i>库存管理
	</h2>
	<div class="breadcrumb-wrapper">
		<span class="label">你所在的位置：</span>
		<ol class="breadcrumb">
			<li><a href="/index">ERP管理系统</a></li>
			<li>库存管理</li>
			<li>库存列表</li>
			<li class="active">增减库存</li>
		</ol>
	</div>
</div>
<div class="contentpanel">
<div class="main">
<form action="/stock/addnum?id=<?php echo $this->stocklist['stock_id'];?>" method="post" class="form-horizontal">
    <?php if ($this->msg):?>
    <div style="margin: 20px 216px;" class="form-group"><?php foreach ($this->msg as $v):?><span class="label label-warning"><?php echo $v;?></span><?php endforeach;?></div>
    <?php endif;?>  
    <div class="form-group form-inline">
        <label for="productname" class="col-sm-2 control-label">产品名称：</label>
        <div class="col-sm-10">
            <input type="hidden" class="form-control" name="stockid" value="<?php echo $this->stocklist['stock_id'];?>" size="58">
            <input type="text" readonly="readonly" class="form-control" name="productname" value="<?php echo $this->stocklist['title'];?>" size="58">
        </div>
    </div>
    <div class="form-group form-inline">
        <label for="Sku" class="col-sm-2 control-label">Sku：</label>
        <div class="col-sm-10">
            <input type="text" readonly="readonly" class="form-control" name="sku" value="<?php echo $this->stocklist['sku'];?>" size="58"></input>
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="col-sm-2 control-label">产品内容：</label>
		<div style="margin: 10px 0px 10px 200px;">
		    <label class="label label-warning">说明：减少库存填负数(如：-1)，增加库存填正数(如：+1)，没操作不填写</label>
		</div>
		<?php foreach($this->stockvaluelist as $v):?>
		<div style="margin-bottom: 10px;margin-left: 200px;">
		        规格大小：
		    <input style="width: 100px;display: inline;" type="text" class="form-control" name="pattern_size[]" value="<?php echo $v['size'];?>" size="15" />
			目前库存：
			<input readonly="readonly" style="width: 100px;display: inline;" type="text" class="form-control" value="<?php echo $v['t_value'];?>" size="10" />
			增减库存：
			<input style="width: 100px;display: inline;" type="text" class="form-control" name="pattern_size_stock[]" value="0" size="10" />
		</div>
		<?php endforeach;?>   
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </div>
</form>
</div>
</div>
